package com.omar.labs.tamtamy.JSON;

import java.util.ArrayList;

import com.omar.labs.tamtamy.Content;
import com.omar.labs.tamtamy.ContentList;


public class JSONContentList extends ContentList {
	
	public JSONContentList(String json){
		super();
		ArrayList<String> v = JSONUtility.getNodeValueWithList(json, "\"list\"");
		for(int i=0; i<v.size(); i++){
			String tmp = v.get(i);
			try{
			  Content tmpCont = new JSONContent(tmp);
			  this.add(tmpCont);  
			}catch (Exception ex){
				ex.printStackTrace();
			}	
		}	
	}
}
